{set:$seller_id = $this->seller['seller_id']}
<h4 class="alert_info">统计{$this->_siteConfig->name}应付给您的商品货款</h4>
<h4 class="alert_warning">只有<在线支付>(非货到付款) 并且已经付款的商品才会统计到这里</h4>
<h1 class="page_title">商品货款明细</h1>
<section class="address_list">
	{set:
		$page = (isset($_GET['page'])&&(intval($_GET['page'])>0))?intval($_GET['page']):1;
		$orderGoodsQuery = CountSum::getSellerGoodsFeeQuery($seller_id);
		$orderGoodsQuery->page = $page;
	}

	{foreach: items = $orderGoodsQuery->find() key=$dataKey}
	{set:$countData = CountSum::countSellerOrderFee(array($item))}
		<div class="address_info">
			<p>
				<strong>订单号：</strong>{$item['order_no']} <br>
				<strong>订单金额：</strong>￥{$countData['orderAmountPrice']}<br>
				<strong>平台促销活动：</strong>￥{$countData['platformFee']}<br>
				<strong>退款金额：</strong>￥{$countData['refundFee']}<br>
				<strong>结算状态：</strong>{if:$item['is_checkout'] == 1}已结算{else:}未结算{/if} <br>
				<strong>下单时间：</strong>{$item['create_time']}<br>
			</p>
			<div class="address_btn">
				<a class="btnn" href="{url:/seller/order_show/id/$item[id]}">订单详情</a>
			</div>
		</div>
	{/foreach}
	{if:!isset($dataKey)}
		<div class="nothing">暂时没有数据</div>
	{/if}
</section>
{$orderGoodsQuery->getPageBar()}
<div class="btn_bottom">
	<a class="btn_submit" href="{url:/seller/bill_edit}">申请结算货款</a>
</div>
